package designPattern.builderPattern;

public class PhoneDirector {

	//这里比较简单，指挥类还可以同时指挥其他builder
	private PhoneBuilder phoneBuilder;

	public PhoneDirector() {
	}

	public PhoneDirector(PhoneBuilder phoneBuilder) {
		this.phoneBuilder = phoneBuilder;
	}

	//同样的构建过程
	public void construct() {
		phoneBuilder.buildCpu();
		phoneBuilder.buildMemory();
	}

	public void showPhone() {
		System.out.println(phoneBuilder.getPhone());
	}
}
